﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectCondition.aspx.cs"
    Inherits="聚欣订单分析.SelectCondition" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>选择条件</title>
    <meta http-equiv="Content-Language" content="zh-cn">
    <link href="../../Style/Style.css" type="text/css" rel="STYLESHEET">
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="C#">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <base target="_self" />

    <script language="javascript">
        var getFromParent = window.dialogArguments;
        function CheckSelect() {
            var aaaa = "";
            for (var i = 0; i < window.document.forms['Form1'].elements.length; i++) {
                var e = Form1.elements[i];
                if (e.checked) {
                    //  if (aaaa == "") {
                    aaaa = e.value;
                    // }
                    //                    else {
                    //                        aaaa = aaaa + "," + e.value;
                    //                    }
                }
            }
            return aaaa;
        }

        function sendFromChild() {
            window.returnValue = CheckSelect();
            window.close();
        }
    </script>

</head>
<body scroll="no">
    <form id="Form1" method="post" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
        </asp:ScriptManager>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <div style="position: absolute; left: 150; top: 300; visibility: visible; z-index: 100">
                    <table style="text-align: center; width: 100%; height: 100%">
                        <tr>
                            <td>
                                <asp:Image ID="I_Progress" runat="server" ImageUrl="~/Images/busy.gif" Visible="true" />
                                <asp:Label ID="lbl_Progress" runat="server" BackColor="LightYellow" ForeColor="Red"
                                    Text="在正查询，请稍候...... "></asp:Label>
                            </td>
                        </tr>
                    </table>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline">
            <ContentTemplate>
                <table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%" bordercolorlight="#c0c0c0"
                    bordercolordark="#ffffff">
                    <tr>
                        <td height="22" background="../../images/show_02.gif" align="left" style="font-size: 12px; font-family: 宋体">请选择您需要的项，然后点“确定”！
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" style="text-align: center">查询：<asp:TextBox ID="TextBox1" runat="server" Height="30px" Width="100px"></asp:TextBox>
                            <asp:Button ID="iButton4" runat="server" CssClass="btn btn-blue" Text="查询" OnClick="iButton4_Click" /><br />
                            <table border="0" cellspacing="0" cellpadding="0" style="width: 318px; height: 49px">
                                <tr>
                                    <td colspan="2" style="height: 31px; text-align: center;">
                                        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                            BorderWidth="1px" Width="100%" ShowHeader="False" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"
                                            PageSize="10">
                                            <PagerSettings FirstPageText="首页" LastPageText="最后一页" NextPageText="下一页" PreviousPageText="上一页" />
                                            <FooterStyle BackColor="#F2F5FA" />
                                            <Columns>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <input id="Checkbox1" value='<%#DataBinder.Eval(Container.DataItem, "SelectContent")%>'
                                                            type="checkbox" />
                                                    </ItemTemplate>
                                                    <ItemStyle Width="30px" />
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:Label ID="Label1" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "SelectContent")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <RowStyle Height="30px" HorizontalAlign="Center" />
                                            <EmptyDataTemplate>
                                                &nbsp;你所查看的选项无可用信息！
                                            </EmptyDataTemplate>
                                            <PagerStyle BackColor="White" />
                                            <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Size="12px"
                                                Font-Strikeout="False" Font-Underline="False" ForeColor="green" Height="30px" />
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="height: 31px; text-align: center;">&nbsp;<input type="button" value="确定" onclick="sendFromChild();" style="width: 70px"
                                        class="BottonCss">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="22" background="../../images/show_02.gif"></td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:JXDDConnectionString %>"></asp:SqlDataSource>
    </form>
</body>
</html>
